﻿Imports System.ComponentModel

Public Class BillDiscountTax
    Implements INotifyPropertyChanged

    Public Event PropertyChanged(ByVal sender As Object, ByVal e As System.ComponentModel.PropertyChangedEventArgs) Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged

    Private Sub NotifyPropertyChanged(Optional ByVal propertyName As String = Nothing)
        RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
    End Sub

    Private _TaxDiscName As String = String.Empty

    Private _TaxDiscID As Integer

    Private _Rate As Double

    Private _Amount As Double

    Public Property TaxDiscName As String
        Get
            Return _TaxDiscName
        End Get
        Set(ByVal value As String)
            _TaxDiscName = value
            NotifyPropertyChanged()
        End Set
    End Property

    Public Property TaxDiscID As Integer
        Get
            Return _TaxDiscID
        End Get
        Set(ByVal value As Integer)
            _TaxDiscID = value
            NotifyPropertyChanged()
        End Set
    End Property

    Public Property Rate As Double
        Get
            Return _Rate
        End Get
        Set(ByVal value As Double)
            _Rate = value
            NotifyPropertyChanged()
        End Set
    End Property

    Public Property Amount As Double
        Get
            Return _Amount
        End Get
        Set(ByVal value As Double)
            _Amount = value
            NotifyPropertyChanged()
        End Set
    End Property
End Class